// CanvasDoc.h: interface for the CCanvasDoc class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_CANVASDOC_H__880BD0C4_DBF2_4A60_9738_FA0E5258C8AC__INCLUDED_)
#define AFX_CANVASDOC_H__880BD0C4_DBF2_4A60_9738_FA0E5258C8AC__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "LogoExecutorNoWnd.h"

class CCanvasDoc : public CLogoExecutorNoWnd  
{
public:
	CCanvasDoc();
	virtual ~CCanvasDoc();

    void SetCanvasWnd (HWND hCanvas);
    void SetErrInfoWnd (HWND hErrWnd);

   /* the returned string shall NOT be freed by the caller. */
   virtual char* inputwindow (char* str);
   virtual void message (char* str);
   virtual void debug_info (char* str);
   virtual void error_info (char* str);

protected:
    HWND m_hCanvas;
    HWND m_hErrWnd;

protected:
    void AppendText (HWND hWnd, char* str);
};

#endif // !defined(AFX_CANVASDOC_H__880BD0C4_DBF2_4A60_9738_FA0E5258C8AC__INCLUDED_)
